package com.good.domain.Utils;

/**
 * @author：大钊
 * @data:2022/4/12 15:53
 **/
public class MyStringUtils {
    public static boolean isBlank(String str) {
        int length;
        if (str != null && (length = str.length()) != 0) {
            for(int i = 0; i < length; ++i) {
                if (!Character.isWhitespace(str.charAt(i))) {
                    return false;
                }
            }

            return true;
        } else {
            return true;
        }
    }
}
